﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Administrator/MasterPage.master" AutoEventWireup="false" CodeFile="SanctionHistory.aspx.vb" Inherits="Administrator_SanctionHistory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
         <script type="text/javascript">
             $(document).ready(function () {

                 Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
                 $("input[id$=txtStartDate]").datepicker($.extend({}, $.datepicker.regional['th'], {
                     yearAddToDisplay: 543,
                     dateFormat: 'dd/mm/yy',
                     showOn: "button",
                     buttonImage: "../img/calendar.gif",
                     buttonImageOnly: true
                 }));
                 $("input[id$=txtEndDate]").datepicker($.extend({}, $.datepicker.regional['th'], {
                     yearAddToDisplay: 543,
                     dateFormat: 'dd/mm/yy',
                     showOn: "button",
                     buttonImage: "../img/calendar.gif",
                     buttonImageOnly: true
                 }));
                 function EndRequestHandler(sender, args) {
                     $("input[id$=txtStartDate]").datepicker($.extend({}, $.datepicker.regional['th'], {
                         yearAddToDisplay: 543,
                         dateFormat: 'dd/mm/yy',
                         showOn: "button",
                         buttonImage: "../img/calendar.gif",
                         buttonImageOnly: true
                     }));
                     $("input[id$=txtEndDate]").datepicker($.extend({}, $.datepicker.regional['th'], {
                         yearAddToDisplay: 543,
                         dateFormat: 'dd/mm/yy',
                         showOn: "button",
                         buttonImage: "../img/calendar.gif",
                         buttonImageOnly: true
                     }));

                 }

             });
    </script>

        <table style="width:100%;">
            <tr>
                <td align="right" style="width: 160px" >
                    <asp:Label ID="lblSource" runat="server" CssClass="control"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlSource" runat="server" AutoPostBack="True" 
                        CssClass="control" Width="200px" Height="25px">
                    </asp:DropDownList>
                </td>
                <td align="left" style="width: 252px">
                    &nbsp;</td>
                <td align="left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" style="width: 160px" >
                    <asp:Label ID="lblNo" runat="server" CssClass="control"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlNo" runat="server" CssClass="control" Width="200px" 
                        Height="25px">
                        <asp:ListItem Value="0">ทั้งหมด</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td align="left" style="width: 252px">
                    &nbsp;</td>
                <td align="left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" style="width: 160px">
                    &nbsp;</td>
                <td align="left" style="text-align: right">
                    &nbsp;</td>
                <td align="left" style="text-align: right; width: 252px;">
                    <asp:CheckBox ID="chkLookDetail" runat="server" Text="แสดงรายละเอียด" />
                </td>
                <td align="left" style="text-align: right">
                    <asp:Button ID="btnSearch" runat="server" CssClass="control" Text="search" 
                        Width="80px" />
                    <asp:Button ID="btnClear" runat="server" CssClass="control" 
                        Text="Clear" Width="80px" />
                    <asp:Button ID="btnPrint" runat="server" CssClass="control" Text="Print" 
                        Width="80px" />
                </td>
            </tr>
        </table>
        <div align="center">
            <asp:Label ID="lblMsg" runat="server" CssClass="control" Font-Size="30px" 
                        ForeColor="Red" Height="30px" style="text-align: center" 
                Visible="False"></asp:Label>
            <asp:GridView ID="grdIndividual" runat="server" AllowSorting="True" 
                AutoGenerateColumns="False" CellPadding="4" CssClass="control" 
                ForeColor="#333333" Width="100%" AllowPaging="True">
                <FooterStyle BackColor="White" Font-Bold="True" ForeColor="#333333" />
                <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                <PagerSettings Mode="NumericFirstLast" />
                <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" 
                    CssClass="cssPager" />
                <SelectedRowStyle BackColor="#FFFFCC" Font-Bold="True" ForeColor="Navy" />
                <HeaderStyle BackColor="#E38120" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:BoundField DataField="DATASOURCE" HeaderText="แหล่งข้อมูล" 
                        SortExpression="DATASOURCE" >
                    <ItemStyle HorizontalAlign="Left" Width="250px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="วันที่บันทึก">
                            <ItemTemplate>
                                 <asp:Label ID="lblUpdateDate" runat="server" 
                                     Text='<%# Eval("LASTUPDATEDATE") %>'></asp:Label>
                                 </ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" />
                            </asp:TemplateField>
                 
                </Columns>
            </asp:GridView>
        </div>
        <div align="right">
            <asp:Label ID="lblTotal" runat="server" Font-Bold="True" ForeColor="#003300"></asp:Label>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

